<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker,autocomplete"></t:base>


<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="processReportList_${process}" title="工序汇报" actionUrl="processReport004Controller.do?datagrid"
              queryParams="{process:'${process}'}" idField="id" fit="true" queryMode="group" checkbox="true" rowStyler="setMyColor">
   <t:dgCol title="编号" field="id" hidden="true" ></t:dgCol>
   <t:dgCol title="状态" field="fstate" dictionary="hbstate" style="setColor()" query="true" ></t:dgCol>
   <t:dgCol title="本厂批号" field="fbcph" query="true"  autocomplete="true"></t:dgCol>
   <t:dgCol title="物料名称"  field="fwlname" ></t:dgCol>
   <t:dgCol title="生产车间" field="fworkshop" dictionary="workshop" hidden="false" ></t:dgCol>
   <t:dgCol title="机组" field="fmatchinegroup" hidden="false" ></t:dgCol>
   <t:dgCol title="班组" field="fworkgroup" dictionary="team" hidden="false" ></t:dgCol>
   <t:dgCol title="投入厚度" field="ftrhd" ></t:dgCol>
   <t:dgCol title="投入宽度" field="ftrkd" ></t:dgCol>
   <t:dgCol title="投入重量" field="ftrzl" ></t:dgCol>
   <t:dgCol title="产出宽度" field="fcckd" hidden="false" ></t:dgCol>
   <t:dgCol title="产出厚度" field="fcchd" hidden="false" ></t:dgCol>
   <t:dgCol title="产出重量" field="fcczl" hidden="false" ></t:dgCol>
   <t:dgCol title="报废重量" field="fbfzl" hidden="false" ></t:dgCol>
   <t:dgCol title="成材率" field="frate" hidden="false" ></t:dgCol>
   <t:dgCol title="投料日期"  field="createDate"  formatter="yyyy-MM-dd"></t:dgCol>
   <t:dgCol title="质量情况" field="fnote" hidden="false" ></t:dgCol>
   <t:dgCol title="汇报日期" field="update_date" hidden="false" ></t:dgCol>
   <t:dgCol title="汇报人" field="updateBy" hidden="false" ></t:dgCol>
   
   <t:dgCol title="当前工序" field="cprocess" dictionary="ccgx" ></t:dgCol>
   <t:dgCol title="下一工序" field="nprocess" dictionary="ccgx" hidden="false" ></t:dgCol>
   
   <t:dgToolBar title="装炉" icon="icon-edit" url="processReport004Controller.do?addorupdate" funname="allSelect"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 
 
 <script>
 	function setMyColor(index,row){
 		var value=row.fstate;
 	    if(value==0){
 			return "color:blue;";
 		}
 		if(value==1){
 			return "color:red;";
 		}
 		if(value==2){
 			return "color:green;";
 		}
 		return "";
 	}

 	

 </script>